import 'package:provide/provide.dart';
import 'package:study_flutter/yzhg/project/shop/model/CateGoodsBean.dart';
import 'package:study_flutter/yzhg/project/shop/pages/shopcar/CartProvide.dart';
import 'package:study_flutter/yzhg/project/shop/provide/GoodsDetailProvide.dart';

import 'function/provide/Counter.dart';
import 'project/shop/provide/CategoryGoodsList.dart';
import 'project/shop/provide/ChildCategory.dart';

/*
 * 全局的Provides 在这里配置
 * 统一管理
 */
class ProvidesInfo {
  void addProvides(Providers provides) {
    provides
      ..provide(Provider<Counter>.value(Counter()))
      ..provide(Provider<ChildCategory>.value(ChildCategory()))
      ..provide(Provider<CategoryGoodsListProvide>.value(CategoryGoodsListProvide()))
      ..provide(Provider<GoodsDetailProvide>.value(GoodsDetailProvide()))
      ..provide(Provider<CartProvide>.value(CartProvide()))
    ;
  }
}
